// Programming_Scala/src/ch13/shapes.scala

package shapes2 {
  case class Point( x: Double, y: Double )

  sealed abstract class Shape()

  case class Circle( center: Point, radius: Double ) extends Shape
  case class Rectangle( lowerLeft: Point, height: Double, width: Double ) extends Shape
  case class Triangle( point1: Point, point2: Point, point3: Point ) extends Shape
  // case class Line( point1: Point, point2: Point ) extends Shape
}
